home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
dev
/
lang
/
fpc09905c.lha
/
fpc
/
inc
/
textrec.inc
< prev
next >
Wrap
Text File
|
1998-09-21
|
2KB
|
106 lines
{
$Id: textrec.inc,v 1.3 1998/05/21 15:37:19 carl Exp $
This file is part of the Free Pascal run time library.
Copyright (c) 1993,97 by the Free Pascal development team
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{
This file contains the definition of the textrec record.
It is put separately, so it is available outside the system
unit without sacrificing TP compatibility.
}
Const
{$ifdef linux}
textrecnamelength = 255;
{$endif}
{$ifdef Win32}
textrecnamelength = 255;
{$endif}
{$ifdef MACOS}
textrecnamelength = 255;
{$endif}
{$ifdef AMIGA}
textrecnamelength = 255;
{$endif}
{$ifdef OS2}
textrecnamelength = 79;
{$endif}
{$ifdef Go32v1}
textrecnamelength = 79;
{$endif Go32v1}
{$ifdef Go32v2}
textrecnamelength = 79;
{$endif Go32v2}
{$ifdef ATARI}
textrecnamelength = 79;
{$endif}
type
textbuf = array[0..127] of char;
{$PACKRECORDS 2}
textrec = record
{$ifdef win32}
handle : longint;
{$endif win32}
{$ifdef amiga}
handle : longint;
{$endif amiga}
{$ifdef macos}
handle : longint;
{$endif macos}
{$ifdef linux}
handle : word;
{$endif}
{$ifdef Go32v1}
handle : word;
{$endif Go32v1}
{$ifdef Go32v2}
handle : word;
{$endif Go32v2}
{$ifdef atari}
handle : word;
{$endif atari}
{$ifdef os2}
handle : word;
{$endif os2}
mode : word;
bufsize,
_private,
bufpos,
bufend : word;
bufptr : ^textbuf;
openfunc,
inoutfunc,
flushfunc,
closefunc : pointer;
userdata : array[1..16] of byte;
name : array[0..textrecnamelength] of char;
buffer : textbuf;
end;
{
$Log: textrec.inc,v $
Revision 1.3 1998/05/21 15:37:19 carl
+ working version now ok
Revision 1.2 1998/05/12 10:42:45 peter
* moved getopts to inc/, all supported OS's need argc,argv exported
+ strpas, strlen are now exported in the systemunit
* removed logs
* removed $ifdef ver_above
}